<template>
    <!-- <select :value='value' @change="handlerChange">
        <option value="1">北京</option>
        <option value="2">上海</option>
        <option value="3">南昌</option>
    </select> -->
    <!-- <div class="box" v-show="visible">
        <div class="contentBox">
            <h1 class="outText">你确定确定退出吗？</h1>
            <div class="button">
                <button @click="confirm">确定</button>
                <button>取消</button>
            </div>
        </div>
    </div> -->
    <!-- <div>
        <div>{{ color }}</div>
        <div>{{ info.name }}</div>
    </div> -->
    <div>
        {{ color }}
    </div>
</template>

<script>
export default {
    // props:["visible"],
    // inject:['color','info'],
    data() {
        return {
            name:'ljp'
        }
    },
    methods:{
        // handlerChange(e){
        //     this.$emit('input',e.target.value)
        //     // console.log(this.value);
        // }
        // confirm(){
        //     this.$emit('update:visible',false)
        // }
    },
    beforeCreate() {
        this.color = this.$parent.color
    },
}
</script>

<style>
.box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
}

.contentBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background-color: #fff;
}

.outText {
    text-align: center;
}
.button {
    display: flex;
    justify-content: space-around;
}
.button button{
    font-size: 40px;
}
</style>